<template>
	<view>
		<phone-directory :phones="phones" @paramClick="paramClick"></phone-directory>
	</view>
</template>

<script>
	import phoneDirectory from '@/components/phone-directory/phone-directory.vue'
	export default {
		name: "ballFriend",
		components: {
			phoneDirectory
		},
		data() {
			return {
				//示例数据
				phones: []
			}
		},
		methods: {
			paramClick(e) {
				console.log(e)
			}
		},
		mounted () {
			this.$api.ballFriend.getMygolfer({
				data: {
					galleryId: uni.getStorageSync('golfGalleryId'),
					size: 10000
					
				},
				success: (res) => {
					console.log(222, res)
					this.phones = res.data.data.records
				}
			})
			
		}
	}
</script>

<style>

</style>
